#ifndef WECHATSERVERWIDGET_H
#define WECHATSERVERWIDGET_H

#include <QWidget>
#include <QUdpSocket>
#include <QHostAddress>
#include <QNetworkDatagram>
#include "type.h"

namespace Ui {
class wechatServerWidget;
}

class wechatServerWidget : public QWidget
{
    Q_OBJECT

public:
    explicit wechatServerWidget(QWidget *parent = nullptr);
    ~wechatServerWidget();


private slots:
    void on_buttonsend_clicked();
    void on_buttonclose_clicked();

private:
    void initWechatServer();
    Ui::wechatServerWidget *ui;
    QUdpSocket *udpsocket;
    int currentPort = 8000;
};

#endif // WECHATSERVERWIDGET_H
